import service from '@/utils/request'
// @Tags A商品sku
// @Summary 创建商品sku
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A商品sku true "创建商品sku"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /shangpinsku/createA商品sku [post]
export const createA商品sku = (data) => {
  return service({
    url: '/shangpinsku/createA商品sku',
    method: 'post',
    data
  })
}

// @Tags A商品sku
// @Summary 删除商品sku
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A商品sku true "删除商品sku"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shangpinsku/deleteA商品sku [delete]
export const deleteA商品sku = (params) => {
  return service({
    url: '/shangpinsku/deleteA商品sku',
    method: 'delete',
    params
  })
}

// @Tags A商品sku
// @Summary 批量删除商品sku
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除商品sku"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shangpinsku/deleteA商品sku [delete]
export const deleteA商品skuByIds = (params) => {
  return service({
    url: '/shangpinsku/deleteA商品skuByIds',
    method: 'delete',
    params
  })
}

// @Tags A商品sku
// @Summary 更新商品sku
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A商品sku true "更新商品sku"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /shangpinsku/updateA商品sku [put]
export const updateA商品sku = (data) => {
  return service({
    url: '/shangpinsku/updateA商品sku',
    method: 'put',
    data
  })
}

// @Tags A商品sku
// @Summary 用id查询商品sku
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.A商品sku true "用id查询商品sku"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /shangpinsku/findA商品sku [get]
export const findA商品sku = (params) => {
  return service({
    url: '/shangpinsku/findA商品sku',
    method: 'get',
    params
  })
}

// @Tags A商品sku
// @Summary 分页获取商品sku列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取商品sku列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /shangpinsku/getA商品skuList [get]
export const getA商品skuList = (params) => {
  return service({
    url: '/shangpinsku/getA商品skuList',
    method: 'get',
    params
  })
}
// @Tags A商品sku
// @Summary 不需要鉴权的商品sku接口
// @accept application/json
// @Produce application/json
// @Param data query request.A商品skuSearch true "分页获取商品sku列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /shangpinsku/getA商品skuPublic [get]
export const getA商品skuPublic = () => {
  return service({
    url: '/shangpinsku/getA商品skuPublic',
    method: 'get',
  })
}